package com.mall.constant.enums;

import lombok.Getter;

/**
 * 常见的状态
 *
 * @author
 * @date 2021-7-18 12:07:51
 */
@Getter
public enum  CommonStatus {

    /**
     * 状态
     */
    UNVALID(0,"无效状态(关闭)"),
    VALID(1,"有效状态/正常(关闭)"),
    SUCCESS(1,"操作成功"),
    ERROR(0,"操作失败"),
    SOLD_OUT(2,"下架商品"),
    END_STATUS(3,"结束"),
    IS_SECKILL(3,"是秒杀商品"),
    DELETE_THE_GOODS(4,"删除商品"),
    PINKAGE(1,"包邮"),
    PONDERE(2,"按重量计费");

    private Integer code;
    private String message;
    CommonStatus(Integer code,String message){
        this.code = code;
        this.message = message;
    }
}
